package networking;

import java.io.InputStream;
import java.net.Socket;

public class Client1 {
	public static void main(String[] args) throws Exception {
		Socket s = new Socket("localhost", 100);
		System.out.println("Client asked the request.");

		InputStream in = s.getInputStream();
		while (true) {
			int ch;
			while ((ch = in.read()) != '\n')
				System.out.print((char) ch);
			System.out.println();
		}
	}
}
